<?php echo isset($head)?$head:''; ?> 
<body class="no-skin">
<?php echo isset($header)?$header:''; ?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php echo isset($left)?$left:''; ?> 
<!-- sidebar end -->

<!-- content start -->
<div class="main-content">
				<div class="main-content-inner">
                
					<?php echo isset($nav_header)?$nav_header:''; ?>
					
                    <div class="page-content">
						

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<div class="error-container">
									<div class="well">
										
										<h3 class="lighter smaller">
											<span class="<?php echo $success ? 'bule' : 'red'?> "><?php echo $msg;?></span>
										</h3>

										<div class="space"></div>
										<?php
											  if($success)
											  {
										?>
										<div>
											
											  <span id="secondUi">5</span>秒钟后将自动跳转。 
											  
											
										</div>
										<?php
											  }
										?>
										<hr />
										<div class="space"></div>

										<div class="center">
											<a href="<?php echo $ret_url;?>" class="btn btn-grey">
												<i class="ace-icon fa fa-arrow-left"></i>
												点击返回
											</a>

											<a href="<?php echo site_url();?>" class="btn btn-primary">
												<i class="ace-icon fa fa-tachometer"></i>
												返回后台主页
											</a>
										</div>
									</div>
								</div>

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
					
                    
				</div>
			</div>

<!-- content end -->

<!-- footer start -->
<?php echo isset($footer)?$footer:''; ?>
<!-- footer end -->

<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>

</div>


<!-- basic scripts -->
<?php echo isset($js_footer)?$js_footer:''; ?>

<?php
  if($success)
  {
?>
<script type="text/javascript">

    var s = 5;
    function secondUpdate() {
        --s;
        document.getElementById("secondUi").innerHTML = s;
        if(s<=0){
            window.location.href ='<?php echo $ret_url; ?>';
        }
        setTimeout('secondUpdate()',1000);
    }
    setTimeout('secondUpdate()',1000);
   
</script>
<?php
  }
?>



</body>

<html>